<template>
  <!-- 组件根标签 -->
  <div class="myhome">
    <!-- home 页面中的嵌套路由占位符 -->
    <keep-alive include="findfind">
      <router-view></router-view>
    </keep-alive>
    <van-tabbar
      v-model="active"
      active-color="red"
      route
      v-if="$route.meta.needTab"
    >
      <van-tabbar-item icon="home-o" to="/company">
        <template #icon
          ><i class="iconfont  myicon iconicon_footbar_gs_sel"></i>
        </template>
        公司</van-tabbar-item
      >
      <van-tabbar-item icon="search" to="/question">
        <template #icon
          ><i class="iconfont myicon iconicon_footbar_st_nor"></i> </template
        >刷题</van-tabbar-item
      >
      <van-tabbar-item icon="friends-o" to="/find">
        <template #icon
          ><i class="iconfont myicon iconicon_footbar_fx_nor"></i> </template
        >发现</van-tabbar-item
      >
      <van-tabbar-item icon="setting-o" to="/my">
        <template #icon
          ><i class="iconfont myicon iconicon_footbar_wode_nor"></i> </template
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>
<script>
export default {
  name: 'home',
  data () {
    return {
      active: 0
    }
  },
  methods: {},
  components: {}
}
</script>
<style lang="less">
.myhome {
  .myicon {
    font-size: 25px;
  }
}
</style>
